﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Configuration;
using System.Data;
using System.Data.Common;

namespace DatabaseTier
{
    //Thomas og Martin
    class DBConnection
    {
        public DBConnection()
        {
            /*
            string provider =
                ConfigurationManager.ConnectionStrings["DatabaseTier.Properties.Settings.TemaXPConnectionString"].
                    ProviderName;
            string connStr = ConfigurationManager.ConnectionStrings["adoOpgave.Properties.Settings.TemaXPConnectionString"].ConnectionString;

            DbProviderFactory dbFactory = DbProviderFactories.GetFactory(provider);

            DbConnection conn = dbFactory.CreateConnection();
            conn.ConnectionString = connStr;
            conn.Open();
            Console.WriteLine("Database er åben: {0}", conn.State);
            */


        }
    }
}
